package com.liqy.api.conf;
/**
 * Created by
 *
 * @auth: liqy
 * on 2022/3/30 13:23.
 * desc:
 */

import org.springframework.context.annotation.Configuration;

/**
 * @ClassName: DBInitConfig
 * @Description: TODO
 * @Author: liqy
 * @CreateDate: 2022/3/30 13:23
 * @UpdateUser: liqy
 * @UpdateDate: 2022/3/30  13:23
 * @UpdateRemark: update TODO
 * @Version: 1.0
 */
@Configuration
public class DBInitConfig {

    /*@Bean
    public DataSourceInitializer dataSourceInitializer(final DataSource dataSource) {
        ResourceDatabasePopulator resourceDatabasePopulator = new ResourceDatabasePopulator();
        resourceDatabasePopulator.addScript(new ClassPathResource("/data.sql"));
        DataSourceInitializer dataSourceInitializer = new DataSourceInitializer();
        dataSourceInitializer.setDataSource(dataSource);
        dataSourceInitializer.setDatabasePopulator(resourceDatabasePopulator);
        return dataSourceInitializer;
    }*/
}
